package com.library.lms.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder(toBuilder = true)
public class BooksBorrow {
    private Long id;
    /**
     * 用户id
     */
    private Long userId;

    private Long bookId;
    /**
     * 书名
     */
    private String bookName;
    /**
     * 借书数量
     */
    private Integer bookNum;
    /**
     * 借书时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDate borrowTime;
    /**
     * 还书时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDate returnTime;

    private String bookAuthor;

    private String bookType;

    private String bookRemark;

    private String bookPrice;
}
